<template>
    <div class="app">
  <router-view></router-view>
        <footerguide v-show="$route.meta.showFooter"></footerguide>
    </div>
</template>

<script>
    import { mapActions } from 'vuex'
    import footerguide from './components/FooterGuide/FooterGuide.vue'
    //import { reqFoodsTypes } from './api'
    export default {
        //name: "App.vue",
      mounted(){
           //this.$store.dispatch('getAddress')
          this.getAddress(),
        this.getShopRatings(),
              this.getShopGoods( ),
              this.getShops(),
              this.getFoodstypes()
        },
        methods:{
            ...mapActions(['getAddress','getShopRatings','getShopGoods','getShops','getFoodstypes']) //映射一个方法
        },
        components:{
            footerguide
        }
    }
</script>

<style lang="scss">

 .app{padding-top: 70px;background-color: white}
</style>